
#pragma once

#include "rental.h"
#include <string>
#include <vector>

class rental_admin
{
private:
	static rental_admin *instance;
	rental_admin();

	int rentals_counter;
	vector <rental> rentals;
public:
	// Singleton Pattern
	static rental_admin * get_rental_admin();
	
	bool rent(string movie, int phone);
	
	void return_(int phone);
	bool valid_rental(int phone);
	rental *get_rental(int phone);
	bool check_late(rental *rental_);
	int calculate_left_fees(rental *rental);
};

